package com.mju.service;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.Page;
import com.mju.exception.ServiceException;
import com.mju.model.Teacher;
import com.mju.model.dto.DurationDTO;

public interface TeacherService {

	public int  batchInsert(List<Teacher> list); 
		
	public Teacher getTeacherById() throws ServiceException;
	public Teacher getTeacherById(String teacherno) throws ServiceException;
	
	//获取导师列表清单
	public List<Teacher> getList(); 
	
	//获取导师列表清单
	public Page<Teacher> getList(int pageNo,int pageSize); 
	
	//获取选导师配置
	public DurationDTO selectDuaration() throws ServiceException;
	
	//学生选导师，发送消息
	public Map<String,String> sendStreamMsg(String teacher1,String teacher2) throws ServiceException;
	
	//学生选导师，发送消息
	public Map<String,String> sendStreamMsg(String studentno,String teacher1,String teacher2) throws ServiceException;
	
	//读消息,导师选学生列表
	//turnNum:1选择teacher1
	public List<Map<String,String>>  receiveMsg(int turnNum) throws ServiceException;
	
	//读消息,导师选学生列表
	//turnNum:1选择teacher1
	public List<Map<String,String>>  receiveMsg(String teacherno,int turnNum) throws ServiceException;
}
